package com.my.demoredis.domain;

import org.springframework.data.redis.core.index.Indexed;

/**
 * Classname: Address
 * Package: com.my.demoredis.domain
 * Description:
 * 地址实体类
 * @Author Alex Liang
 * @Create 2024/7/6 下午8:27
 * @Version 1.0
 */

public class Address {

    /**
     * 国家
     */
    @Indexed
    private String country;
    /**
     * 城市
     */
    @Indexed
    private String city;

    public Address() {
    }

    public Address(String country, String city) {
        this.country = country;
        this.city = city;
    }

    public String getCountry() {
        return country;
    }

    public void setCountry(String country) {
        this.country = country;
    }

    public String getCity() {
        return city;
    }

    public void setCity(String city) {
        this.city = city;
    }

    @Override
    public String toString() {
        return "Address{" +
                "country='" + country + '\'' +
                ", city='" + city + '\'' +
                '}';
    }
}
